public class Circle extends Graphic{
    private double radius;

    public double getRadius() {
        return radius;
    }

    public void setRadius(double radius) {
        this.radius = radius;
    }

    @Override
    public double area() {
        return radius*radius*3.14;
    }

    @Override
    public double perimeter() {
        return 2*3.14*radius;
    }

    @Override
    public String getInfo() {
        return "半径"+radius+"面积"+area()+"周长"+perimeter();
    }
}
